package com.xmy.cultivate.service;

import com.aliyun.facebody20191230.models.AddFaceResponse;
import com.aliyun.facebody20191230.models.SearchFaceResponse;

public interface IAliyunFaceService {

    /**
     * 添加人脸样本
     * @return
     */
    public abstract boolean addFaceSample(String DbName,String entityId,String lables) throws Exception;

    /**
     * 更新人脸样本
     * @return
     */
    public abstract boolean updateFaceSample(String DbName,String entityId,String lables) throws Exception;

    public abstract boolean existFaceSample(String DbName,String entityId)throws Exception;

    /**
     * 添加人脸数据
     * @return
     */
    public abstract AddFaceResponse addFaceData(String DbName,String imageUrl,String entityId,String extraData) throws Exception;

    /**
     * 删除人脸数据
     * @return
     */
    public abstract boolean delFaceData(String DbName,String faceId) throws Exception;

    public abstract SearchFaceResponse searchFace(String DbName,Long schoolId,String imageUrl) throws Exception;

    public abstract String searchFaceReturnEntityId(String DbName,Long schoolId,String imageUrl) throws Exception;

    public abstract boolean addFaceDb(String DbName) throws Exception;
}
